package server

import "strings"

// normalizeProtocol 归一化协议字符串并判断是否支持 (tcp/udp)
func normalizeProtocol(p string) (string, bool) {
	np := strings.ToLower(strings.TrimSpace(p))
	switch np {
	case "tcp", "udp":
		return np, true
	default:
		return np, false
	}
}
